/*
 * The AuctionCentralDirector class.
 * @author Kevin Smith
 * 
 * This class inherit all fields, getters and setters from its parent
 * class, such as name, userName, password, etc...
 * 
 * Fields added in addition to the parent class: Employee#
 */

/** This is necessary for the ACDirector pane. */
package model;

/**
  * The AuctionCentralDirector class.
  * @author Kevin Smith
  * 
  * This class inherit all fields, getters and setters from its parent
  * class, such as name, userName, password, etc...
  * 
  * Fields added in addition to the parent class: Employee#
  */
public class ACDirector extends AuctionCentralEmployee{

	/** Enum user type */
	private UserTypeEnum my_user_type = UserTypeEnum.UT_ACDIRECTOR;

	/** 
	 * Construct a Auction Central Director object. 
	 *
	 * @pre the_first_name != null
	 * @pre the_last_name != null
	 * @pre the_userName != null
	 * @pre the_password != null
	 * @pre the_phone != null
	 * @pre the_address != null
	 * @pre the_email != null
	 * @pre the_bond_number != null
	 * 
	 * @param the_first_name The first name
	 * @param the_last_name The last name
	 * @param the_userName The user name
	 * @param the_password The password
	 * @param the_phone The phone
	 * @param the_address The address
	 * @param the_email The e-mail
	 * @param the_bond_number The bond number
	 * */
	public ACDirector(String the_first_name, String the_last_name,
			String the_userName, String the_password, String the_phone,
			Address the_address, String the_email, String the_bond_number) {
		super(the_first_name, the_last_name, the_userName, the_password, the_phone,
				the_address, the_email, the_bond_number);
	}

	/**
	 * Returns the user type.
	 * 
	 * @return the my_user_type.
	 */
	public UserTypeEnum get_userType() {
		return my_user_type;
	}

	/**
	 * Returns a String representation of the AC Director object.
	 * 
	 * @return a String representation.
	 */
	public String toString() {
		String result;
		result = my_first_name + "~" + my_last_name + "~" + my_userName + "~" + my_password
				+ "~" + my_phone + "~addressObject~" + my_email + "~null";
		return result;
	}
}
